
  <tr valign="top">
    <td height="40" align="left" class="dato" background="/images/topHeader.gif" colspan="4">Datos de Usuario</td>
  </tr>
    <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos">Datos del Usuario <%= @userinfo.login  %> </span></td>
  </tr>
    <tr><td>&nbsp;</td></tr>


<table>
  <tr>
  </tr>
  <tr>
  	 <td>
		Nombre de Usuario: 
	</td>
  	<td>
		<%= @userinfo.login  %>
	</td></tr>
<tr>
	<td>
		Nombre: 
	</td>
<td><%= @userinfo.name  %> <%= @userinfo.lastname  %></td>
</tr>
<tr>
		<td>
		Email: 
	</td>
<td><%= @userinfo.email  %></td>
</tr>
<tr>
		<td>
		Fecha de Nacimiento: 
	</td>
<td><%= @userinfo.birthdate  %></td>
</tr>
 <tr><td>&nbsp;</td></tr> 
<tr><td>	
<%= link_to	"EDITAR", :controller => 'users', :action => 'edit', :id => @userinfo.id, :class => "navbar" %>
</td></tr>
  </tr>
 <tr><td>&nbsp;</td></tr>
 

  
     <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos">Metodos de Pago </span></td>
  </tr>
    <tr><td>&nbsp;</td></tr>
    <tr>
 	</tr>
	
	
	<table>
  <tr>
  </tr>

<% @paymethod.each do |paymethod| %>

  <% if paymethod.name == "paypal" %>
  <tr>
    <td width="65"><img width="65" height="30" src="/images/paypal.png" align="left" /><%= paymethod.name %>-<%= paymethod.useracc %></td>
    <td><%= link_to 'Mostrar', paymethod %></td>
    <td><%= link_to 'Editar', edit_paymethod_path(paymethod) %></td>
    <td><%= link_to 'Eliminar', paymethod, :confirm => 'Esta seguro?', :method => :delete %></td>
   </tr>
   <% end %>
	
  <% if paymethod.name == "tarjeta" %>
  <tr>
    <td width="65"><img width="65" height="30" src="/images/visa.png" align="left" /><%= paymethod.typecc %>-<%= paymethod.numbercc %></td>
    <td><%= link_to 'Mostrar', paymethod %></td>
    <td><%= link_to 'Editar', edit_paymethod_path(paymethod) %></td>
    <td><%= link_to 'Eliminar', paymethod, :confirm => 'Esta seguro?', :method => :delete %></td>
   </tr>
   <% end %>

<% end %>
	
	
	
<tr>
<td><%= link_to	"AGREGAR", :controller => 'paymethods', :action => 'new', :id => @userinfo.id, :class => "navbar" %></td>
</tr>





